var thisObject;
var thispage;
var btn_tow_status;
var DashboardPage = Objs("view.components.DashboardPage",
	UiComponent,
{   
	allReminders:null,
	
     
	
	initialize: function()
	{ 
		DashboardPage.$super.initialize.call( this );
		thisObject = this;
		thispage=this;
		thisObject.initializeChildren();
		thisObject.bindListeners();
               
	},
	

    initializeChildren: function()
    {   
        
        
		this.allReminders = jQuery("#btn-allreminders");
                    
    },

	bindListeners: function()
	{  
		var namespace = ".DashboardPage";
               
		this.allReminders.on( "click"+namespace, jQuery.proxy( this, "allReminders_clickHandler" ) );
		
                  
               
           
	},
        
        allReminders_clickHandler:function()
        { 
            this.dispatchEvent( DashboardPage.ALL_REMINDERS );
       
              /* bootbox.confirm("Are you sure you want yo change the status?", "Cancel", "Ok", function(result) {
			 if(result==true)
			 {
			 	 thispage.dispatchEvent(DashboardPage.ALL_REMINDERS );
			 }
			 });*/
        }
       
});

DashboardPage.ALL_REMINDERS ="allReminders";
